home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / hobby / gim_308.zip / GIM11C.DOC < prev    next >
Text File  |  1994-12-18  |  17KB  |  467 lines

  1.           CHAPTER 11     LISTS OF SIMILAR PERSONS, FAMILIES AND NOTES
  2.  
  3.                                       OR
  4.  
  5.           SEARCHING YOUR FOLDER FOR SPECIFIC INFORMATION
  6.  
  7.  
  8. PART C:  OPERATORS USED IN WHERE COMMANDS...
  9.  
  10.           In this section we assume that you know what a WHERE command
  11.           is, how it's used, and what it's used for.  We also assume
  12.           that you know what an operator in a WHERE command is.  If you
  13.           haven't done so already, review the first section in this
  14.           chapter, which is entitled "An Introduction with Basic
  15.           Examples".
  16.  
  17.           The WHERE command provides for a number of operators.  We'll
  18.           list them first, and explain each of them in turn afterward:
  19.  
  20.           Operators for numbers:
  21.  
  22.                1.  Less Than
  23.                2.  Less Than or Equal To
  24.                3.  Equal To
  25.                4.  Not Equal To
  26.                5.  Greater Than
  27.                6.  Greater Than or Equal To
  28.  
  29.           Operators for Dates:
  30.  
  31.                (Note that the operators for strings, below, also apply
  32.                to dates, but when those operators are applied, GIM
  33.                LISTS treats the date as a string of characters rather
  34.                than as a point in time.)
  35.  
  36.                1.  Before
  37.                2.  On or Before
  38.                3.  On
  39.                4.  After
  40.                5.  On or After
  41.  
  42.           Operators for Strings:
  43.  
  44.                1.  Equal To
  45.                2.  Not Equal To
  46.                3.  Starts With
  47.                4.  Contains
  48.                5.  Ends With
  49.                6.  Is Missing
  50.                7.  Is Acceptable
  51.                8.  Is Complete
  52.  
  53.           Operators for Notes:
  54.  
  55.                1.  Contains
  56.                2.  Is Missing
  57.  
  58.           Operators for Special Situations:
  59.  
  60.                1.  Colon (:)
  61.  
  62.      A Note About Operators:
  63.  
  64.           All of the operators described in this section can be negated
  65.           by prefixing them with any of the following:
  66.  
  67.                ISN'T
  68.                IS NOT
  69.                DOESN'T
  70.                DOES NOT
  71.  
  72.           In other words, for every positive operator, there is a
  73.           corresponding negative operator.
  74.  
  75.           For example ...
  76.  
  77.           "CONTAINS" becomes "DOESN'T CONTAIN",
  78.           "IS EQUAL TO" becomes "IS NOT EQUAL TO",
  79.           "IS ON OR BEFORE" becomes "IS NOT ON OR BEFORE",
  80.  
  81.           ... and so on.
  82.  
  83.           This means that you can come up with some pretty odd sounding
  84.           negative operators -- "DOES NOT LESS THAN OR EQUAL TO" is a
  85.           legal operator, but is more simply stated "IS GREATER THAN"
  86.           -- but it also gives you the power to say whatever you want
  87.           to say.
  88.  
  89.      Operators for Numbers:
  90.  
  91.           1.  Less Than
  92.  
  93.                Synonyms:  LT, <, and IS LESS THAN
  94.  
  95.                Example:  WHERE children LT 5
  96.  
  97.                          This WHERE command selects persons or families
  98.                          who have fewer than five children.
  99.  
  100.           2.  Less Than or Equal To
  101.  
  102.                Synonyms:  LE, <=, and IS LESS THAN OR EQUAL TO
  103.  
  104.                Example:  WHERE children LE 5
  105.  
  106.                          This WHERE command selects persons or families
  107.                          who have at most five children.
  108.  
  109.           3.  Equal To
  110.  
  111.                Synonyms:  EQ, =, ==, IS, EQUAL, EQUALS, and IS EQUAL TO
  112.  
  113.                Example:  WHERE children EQ 5
  114.  
  115.                          This WHERE command selects persons or families
  116.                          who have exactly five children.
  117.  
  118.           4.  Not Equal To
  119.  
  120.                Synonyms:  NE, !=, <>, ISN'T, DOESN'T EQUAL, and
  121.                           IS NOT EQUAL TO
  122.  
  123.                Example:  WHERE children NE 5
  124.  
  125.                          This WHERE command selects persons or families
  126.                          who have any number of children but five.
  127.  
  128.           5.  Greater Than
  129.  
  130.                Synonyms:  GT, >, and IS GREATER THAN
  131.  
  132.                Example:  WHERE children GT 5
  133.  
  134.                          This WHERE command selects persons or families
  135.                          who have more than five children.
  136.  
  137.           6.  Greater Than or Equal To
  138.  
  139.                Synonyms:  GE, >=, and IS GREATER THAN OR EQUAL TO
  140.  
  141.                Example:  WHERE children GE 5
  142.  
  143.                          This WHERE command selects persons or families
  144.                          who have at least five children.
  145.  
  146.      Operators for Dates:
  147.  
  148.           1.  Before
  149.  
  150.                Synonyms:  BEFORE and IS BEFORE
  151.  
  152.                Example:  WHERE birth date is before "4 Jul 1776"
  153.  
  154.                          This WHERE command selects persons who where
  155.                          born before 4 Jul 1776.  Those born ON 4 Jul
  156.                          1776 are NOT selected.
  157.  
  158.           2.  On or Before
  159.  
  160.                Synonyms:  ON OR BEFORE and IS ON OR BEFORE
  161.  
  162.                Example:  WHERE birth date is on or before "4 Jul 1776"
  163.  
  164.                          This WHERE command selects persons who where
  165.                          born on or before 4 Jul 1776.  Those born ON
  166.                          4 Jul 1776 ARE selected.
  167.  
  168.           3.  On
  169.  
  170.                Synonyms:  ON and IS ON
  171.  
  172.                Example:  WHERE birth date is on "4 Jul 1776"
  173.  
  174.                          This WHERE command selects persons who where
  175.                          born on 4 Jul 1776, and excludes all others.
  176.  
  177.                          Note that the opposite of "IS ON" is "IS NOT
  178.                          ON" and variations; this would select only
  179.                          those persons NOT born on 4 Jul 1776, which is
  180.                          rarely very useful, but it's possible anyway.
  181.  
  182.           4.  After
  183.  
  184.                Synonyms:  AFTER and IS AFTER
  185.  
  186.                Example:  WHERE birth date is after "4 Jul 1776"
  187.  
  188.                          This WHERE command selects persons who where
  189.                          born after 4 Jul 1776.  Those born ON 4 Jul
  190.                          1776 are NOT selected.
  191.  
  192.           5.  On or After
  193.  
  194.                Synonyms:  ON OR AFTER and IS ON OR AFTER
  195.  
  196.                Example:  WHERE birth date is on or after "4 Jul 1776"
  197.  
  198.                          This WHERE command selects persons who where
  199.                          born on or after 4 Jul 1776.  Those born ON
  200.                          4 Jul 1776 ARE selected.
  201.  
  202.      Operators for Strings:
  203.  
  204.           1.  Equal To
  205.  
  206.                Synonyms:  EQ, =, ==, IS, EQUAL, EQUALS, and IS EQUAL TO
  207.  
  208.                Example:  WHERE birth date EQ "30 Apr 1964"
  209.  
  210.                          This WHERE command selects persons whose birth
  211.                          date is "30 Apr 1964".
  212.  
  213.                          Note that persons whose birth date is
  214.                          "30 April 1964" will NOT be selected.
  215.                          (See IS ON under Operators for Dates, above.)
  216.  
  217.                Example:  WHERE birth place EQ "Poland"
  218.  
  219.                          This WHERE command selects persons whose birth
  220.                          place is "Poland".
  221.  
  222.                          Note that persons whose birth place contains
  223.                          "Poland", but is not identical to "Poland",
  224.                          such as "Posen, Poland", will NOT be selected.
  225.                          (See CONTAINS, below.)
  226.  
  227.           2.  Not Equal To
  228.  
  229.                Synonyms:  NE, !=, <>, ISN'T, DOESN'T EQUAL, and
  230.                           IS NOT EQUAL TO
  231.  
  232.                Example:  WHERE birth place NE "Italy"
  233.  
  234.                          This WHERE command selects persons whose birth
  235.                          place is NOT "Italy".  Note that persons whose
  236.                          birth place is "Rome, Italy" WILL be selected.
  237.                          (See CONTAINS, below.)
  238.  
  239.           3.  Starts With
  240.  
  241.                Synonyms:  STARTS WITH, START WITH
  242.  
  243.                Example:  WHERE surname STARTS WITH "Mad"
  244.  
  245.                          This WHERE command selects persons whose
  246.                          surnames start with "Mad", including "Madsen",
  247.                          "Madison", "Maddox", etc.
  248.  
  249.                          Note that DOESN'T START WITH is a valid operator,
  250.                          and represents the opposite of STARTS WITH.
  251.  
  252.           4.  Contains
  253.  
  254.                Synonyms:  CONTAIN, CONTAINS, and DOES CONTAIN
  255.  
  256.                Example:  WHERE birth place CONTAINS "York"
  257.  
  258.                          This WHERE command selects any person whose
  259.                          birth place contains the word "York".
  260.  
  261.                          Note that all of the following birth places
  262.                          will be selected:
  263.  
  264.                               Rye, Westchester, New York
  265.                               Halifax, Yorkshire, England
  266.                               York Township, Ontario, Canada
  267.  
  268.                          Note that the following birth places will NOT
  269.                          be selected UNLESS case sensitivity is OFF.
  270.                          (See the section entitled "A Glossary of GIM
  271.                          LISTS Commands with Examples", under the
  272.                          heading CASESENS, for details.)
  273.  
  274.                               yorkshire, england
  275.                               NEW YORK CITY
  276.  
  277.                          Note that the following birth place will NEVER
  278.                          be selected:
  279.  
  280.                               Cambridge, Washington, NY
  281.  
  282.                          Note that DOESN'T CONTAIN is a valid operator,
  283.                          and represents the opposite of CONTAINS.
  284.  
  285.           5.  Ends With
  286.  
  287.                Synonyms:  ENDS WITH, END WITH
  288.  
  289.                Example:  WHERE surname ENDS WITH "sen"
  290.  
  291.                          This WHERE command selects persons whose
  292.                          surnames start with "sen", including "Madsen",
  293.                          "Larsen", "Johansen", etc.
  294.  
  295.                          Note that DOESN'T END WITH is a valid operator,
  296.                          and represents the opposite of ENDS WITH.
  297.  
  298.           6.  Is Missing
  299.  
  300.                Synonyms:  IS MISSING
  301.  
  302.                Example:  WHERE birth date is missing
  303.  
  304.                          This WHERE command selects persons whose birth
  305.                          date is empty.
  306.  
  307.                          Any part of a person or family which is
  308.                          capable of containing a string, such as first
  309.                          names, last names, dates, places, the AFN and
  310.                          the REFN may be tested for being missing.
  311.  
  312.                          Note that ISN'T MISSING is a valid operator,
  313.                          and represents the opposite of IS MISSING.
  314.  
  315.           7.  Is Acceptable
  316.  
  317.                Synonyms:  IS ACCEPTABLE
  318.  
  319.                The "IS ACCEPTABLE" operator only has meaning when
  320.                applied to dates, and to LDS ordinance places (baptisms,
  321.                endowments, and sealings).
  322.  
  323.                Note that IS NOT ACCEPTABLE is a valid operator, and
  324.                represents the opposite of IS ACCEPTABLE.
  325.  
  326.                Example:  WHERE birth date is acceptable
  327.  
  328.                          A date is "acceptable" if it occurred during
  329.                          or after the year 1000 AD.  Strictly speaking,
  330.                          a date is acceptable if it contains a number
  331.                          greater than 1000.
  332.  
  333.                          The concept of a date being "acceptable"
  334.                          should be thought of as being "better than
  335.                          nothing, but not necessarily complete".
  336.  
  337.                Example:  WHERE endowment place is acceptable
  338.  
  339.                          A place is "acceptable" if GIM LISTS can
  340.                          figure out which temple is intended by the
  341.                          place string; or if the place string contains
  342.                          the word "living", indicating a living LDS
  343.                          baptism.
  344.  
  345.                          The following places are acceptable, but not
  346.                          complete:
  347.  
  348.                          Manti Temple
  349.                          Salt Lake City
  350.                          Hawaii
  351.                          Switzerland
  352.  
  353.                          The following places are not acceptable:
  354.  
  355.                          Hawaiian Temple
  356.                          Swiss Temple
  357.                          ??? Unrecognized Temple ???
  358.  
  359.           8.  Is Complete
  360.  
  361.                Synonyms:  IS COMPLETE
  362.  
  363.                The "IS COMPLETE" operator only has meaning when applied
  364.                to dates, and to LDS ordinance places (baptisms, endow-
  365.                ments, and sealings).
  366.  
  367.                Note that IS NOT COMPLETE is a valid operator, and
  368.                represents the opposite of IS COMPLETE.
  369.  
  370.                Example:  WHERE birth date is complete
  371.  
  372.                          A date is "complete" if it is in the form
  373.                          "DD Month YYYY", such as "30 Apr 1964" or
  374.                          "4 July 1776".
  375.  
  376.                          Note that "4 Jul 1776" and "4 July 1776" are
  377.                          both equally complete, as are "5 Sep 1939" and
  378.                          "5 Sept 1939".
  379.  
  380.                          The concept of a date being "complete" should
  381.                          be thought of as "contains no ambiguities,
  382.                          such as question marks or other punctuation."
  383.                          In other words, the following dates are not
  384.                          complete (although they are all acceptable):
  385.  
  386.                               3 or 30 Apr 1964
  387.                               before 1700
  388.                               16 Jul 1962?
  389.                               5,6 Aug 1894
  390.  
  391.                Example:  WHERE endowment place is complete
  392.  
  393.                          A place is "complete" if GIM LISTS can
  394.                          figure out which temple is intended by the
  395.                          place string, AND if that place string is the
  396.                          same place name that is contained in the
  397.                          GIMTPL.GIM file.
  398.  
  399.                          A place name is also complete if the place
  400.                          string contains the word "living", indicating
  401.                          a living LDS baptism.
  402.  
  403.                          The following places are complete:
  404.  
  405.                          The Manti, Utah Temple
  406.                          The Salt Lake City, Utah Temple
  407.                          The Laie, Hawaii Temple
  408.                          The Zollikofen, Switzerland Temple
  409.  
  410.      Operators for Notes:
  411.  
  412.           1.  Contains
  413.  
  414.                Synonyms:  CONTAIN, CONTAINS, DOES CONTAIN
  415.  
  416.                Example:  WHERE birth source notes CONTAIN "microfilm"
  417.  
  418.                          This WHERE command selects persons whose birth
  419.                          source notes contain the word "microfilm"
  420.                          anywhere in the note.
  421.  
  422.                          This operator functions similarly to the
  423.                          CONTAINS operator for strings.
  424.  
  425.                          Note that DOESN'T CONTAIN is a valid operator,
  426.                          and represents the opposite of CONTAINS.
  427.  
  428.           2.  Is Missing
  429.  
  430.                Synonyms:  IS MISSING
  431.  
  432.                Example:  WHERE birth source notes IS MISSING
  433.  
  434.                          This WHERE command selects persons whose birth
  435.                          source notes are empty.
  436.  
  437.                          This operator functions similarly to the
  438.                          IS MISSING operator for strings.
  439.  
  440.                          Note that ISN'T MISSING is a valid operator,
  441.                          and represents the opposite of IS MISSING.
  442.  
  443.      Operators for Special Situations:
  444.  
  445.           1.  The Colon Operator
  446.  
  447.                Synonyms:  :
  448.  
  449.                Example:  WHERE any source note : contains "microfilm"
  450.                          and doesn't contain "census"
  451.  
  452.                          This WHERE command selects all persons or
  453.                          families where any note contains the word
  454.                          "microfilm" but doesn't contain the word
  455.                          "census".
  456.  
  457.                          PLEASE NOTE:
  458.  
  459.                          The colon operator is considered an advanced
  460.                          -- rather than a basic -- feature of GIM
  461.                          LISTS, and it should only be attempted by
  462.                          those persons who feel comfortable with the
  463.                          basic features of GIM LISTS, and who have read
  464.                          and understood the section entitled "Advanced
  465.                          Examples; Arcane WHERE Command Syntax".  See
  466.                          that section for more details.
  467.